/**  
* @Title: ShopService.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年4月1日  
*/
package com.fortune.rainshine.service.service;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.base.ParmsModel;
import com.fortune.rainshinecommon.model.ShopModel;
import com.fortune.rainshinecommon.query.ShopQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**  
* @ClassName: ShopService  
* @Description: TODO(门店逻辑处理)  
* @author 张鑫
* @phone 17561783855
* @date 2019年4月1日  
*    
*/
@FeignClient(value = "rain-shine-service",configuration = FeignConfig.class)
@RestController
public interface ShopService {
	
	@PostMapping(value = "/shop/createShop")
	MsgModel add(ShopModel model);

	@PostMapping(value = "/shop/shopList")
	MsgModel list(ParmsModel parm);

	@PostMapping(value = "/shop/updateShop")
	MsgModel update(ShopModel model);

	@PostMapping(value = "/shop/delShop")
	MsgModel delete(ShopModel model);

	@PostMapping(value = "/shop/shopsByUserId")
	List<ShopModel> getShopsByUserId(Integer userId);

	@PostMapping(value = "/shop/getMapShops")
	List<ShopModel> getMapShops(ShopQuery query);

	@PostMapping(value = "/shop/getShopByShopId")
	ShopModel getShopByShopId(Integer shopId);
	
	@PostMapping(value = "/shop/getShopByShopLevel")
	List<ShopModel> getShopByShopLevel(Integer shopLevel);
	
	@PostMapping(value = "/shop/getShopByMerchantsId")
	List<ShopModel> getShopByMerchantsId(Integer merchantsId);

	@PostMapping(value = "/shop/getByShopName")
	ShopModel getByShopName(String searchValue);

	@PostMapping(value = "/shop/getShopByShopId2")
	ShopModel getShopByShopId2(Integer shopId);

	@PostMapping(value = "/shop/shopsByUserId2")
	List<ShopModel> getShopsByUserId2(Integer userId);
}
